package com.hehao.common.entiy;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author Damon
 * @date 2023/6/26
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class User {
    private Long id;
    private String userName;
    private String email;
    private String description;
    private Long phoneNumber;
    private String phoneNumberStr;

    public void setPhoneNumber(Long phoneNumber) {
        this.phoneNumber = phoneNumber;
        this.phoneNumberStr = this.phoneNumber.toString();
    }
}
